// pages/category/index.js
import{request} from  "../../request/index.js"
Page({
  data: {
    leftData:[],
    rightData:[],
    // 被点击的的菜单
    currentIndex:0,
    // 右侧滚动条顶部距离
    scrolltop:0
  },
  cateData:[
    {
      name:"男装",
      // id:1,
      children:[
        {
          name:"森马",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            }
          ]
        },
        {
          name:"特步",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            }
          ]
        },
        {
          name:"美特斯",
          id:3,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            }
          ]
        },
      ]
    },
    {
      name:"女装",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"1"
            }
          ]
        },
      ]
    },
    {
      name:"童装",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"电脑",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"手机",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"家电",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"茶叶",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"香烟洋酒",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"啤酒可乐",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"化工用品",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"硬件软件",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"数据线",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"数据线",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"数据线",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"数据线",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
    {
      name:"童装",
      // id:1,
      children:[
        {
          name:"夹克",
          id:1,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"1"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"2"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"3"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"4"
            }
          ]
        },
        {
          name:"长裙",
          id:2,
          children:[
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"5"
            },
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"6"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"7"
            },{
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"8"
            }
          ]
        },
        {
          name:"帽子",
          id:3,
          children:[
            {
              img:"https://img30.360buyimg.com/focus/s140x140_jfs/t17449/23/1286271766/3527/870ce296/5ac4780cN6087feb5.jpg",
              tetleL:"夹克",
              ids:"9"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"10"
            },
            {
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"11"
            },{
              img:"//img12.360buyimg.com/focus/s140x140_jfs/t1/131424/31/274/19042/5ecb3bc2E96ef8448/0188085e6fd6cd12.png",
              tetleL:"夹克",
              ids:"12"
            }
          ]
        },
      ]
    },
        
  ],
 
  onLoad: function (options) {
    // 给左边赋值
    let leftData = this.cateData.map(v => v.name)
    // console.log(leftData)
    // 给右边赋值
    let rightData = this.cateData[0].children
    // console.log(rightData)
    this.setData({
      leftData,
      rightData,
    })
    // 把请求回来的数据存到本地存储中
    // wx.setStorageSync("cates",{time:Data.new(),data:request})
    // 获取本地储存中的数据 wx.getStorageSync('cates')

    // 1.先判断一下本地存储中有没有旧的数据
    // 2.没有旧数据 直接发送新请求
    // 3.有旧的数据 同时 旧的数据也没有过期 就是用本地存储中的旧数据即可
    // 1.获取本地储存中的数据 
    // const cates = wx.getStorageSync('cates')
    // // 2.判断需不需要发送请求
    // if(!Cates){
    //   // 不存在 发送请求获取数据
    //   this.Getcata()
    // }else{
    //   // 有旧的数据  定义过期时间 10S 改成 5分钟
    //   if(Date.now()-cates.time>1000*10){
    //     this.Getcata()
    //   }else{
    //     this.cateData = cates.data
    //     // 给左边赋值
    //     let leftData = this.cateData.map(v => v.name)
    //     // console.log(leftData)
    //     // 给右边赋值
    //     let rightData = this.cateData[0].children
    //     // console.log(rightData)
    //     this.setData({
    //       leftData,
    //       rightData
    //     })
    //   }
    // }
  },
  // 获取数据
  Getcata(){
    request({url:"/Getcata"}).then(request => {
      // console.log("回调函数"+request)
      // 把请求回来的数据存到本地存储中
      // wx.setStorageSync("cates",{time:Data.new(),data:request})
    })
  },
  // 左边菜单点击事件
  handTtemTap(e){
    // console.log(e)
    // 获取标题索引 给currentIndex赋值 根据索引来渲染不同的内容
    const {index} =e.currentTarget.dataset
    let rightData = this.cateData[index].children
    this.setData({
      currentIndex:index,
      rightData,
      // 重新设置右侧滚动条位置
      scrolltop:0
    })
  }
})